package com.project.bean.SystemInfo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("user_info")
public class UserBean {

    @TableId(value = "user_id",type = IdType.AUTO)
    private int userId;//用户编号
    @TableField("user_name")
    private String userName;//用户名
    @TableField("user_pwd")
    private String userPwd;//密码
    @TableField("user_root")
    private String userRoot;//用户权限
    @TableField("user_msg")
    private String userMsg;//用户真实姓名


    public UserBean() {
    }

    public UserBean(String userName, String userPwd, String userRoot, String userMsg) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userRoot = userRoot;
        this.userMsg = userMsg;
    }

    public UserBean(int userId, String userName, String userRoot, String userMsg) {
        this.userId = userId;
        this.userName = userName;
        this.userRoot = userRoot;
        this.userMsg = userMsg;
    }

    public UserBean(int userId, String userName, String userPwd, String userRoot, String userMsg) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.userRoot = userRoot;
        this.userMsg = userMsg;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserRoot() {
        return userRoot;
    }

    public void setUserRoot(String userRoot) {
        this.userRoot = userRoot;
    }

    public String getUserMsg() {
        return userMsg;
    }

    public void setUserMsg(String userMsg) {
        this.userMsg = userMsg;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userRoot='" + userRoot + '\'' +
                ", userMsg='" + userMsg + '\'' +
                '}';
    }


}
